$(function(){
    var queryurl = basePath +'userTz/queryUserFaceInfo.do';
    $.ajax({
        url : queryurl,
        type : "POST",
        async: false,
        success : function(qData) {
            var mya = [];
            qData =JSON.parse(qData);
            $.each(qData.rows,function(i,n){
                var myArray ={};
                myArray.id = i;
                myArray.text = qData.rows[i].idcard;
                mya[i] = myArray;
            });
                $('#status').combobox('loadData',mya);
        },
        error:function(eData){

        }
    });
});

function showImg(value, row, index,data){

        var url  = row.photo.split("&");
        //face = 'data:image/gif;base64,'+face[0];
        var img = "";

    for(var i=1;i<url.length;i++){
        img =img+ '<img style="width:5%;height: auto" border="1" src='+url[i]+' />';
    }
    return img;
}

/**
 * 查询操作
 */
function query() {
        //构造参数
        var idcard = $("#status").combobox('getText');
        //转换参数
        $('#dg_img').datagrid('reload',{
            'idcard' : idcard
        });
}
